import request from '@/utils/request'

//用户登陆
export const login = data => {
    return request({
        methods: 'POST',
        url: '/api/users/login',
        data
      })
}

//用户注册
export const register = data => {
    return request ({
        methods: 'POST',
        url: '/api/users',
        data
    })
}
// 修改用户资料
export const updateUser = data => {
    return request({
      method: 'PUT',
      url: '/api/user',
      data
    })
  }